


<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>login</title>
</head>
<body>
<form action="/login" method="POST">
    用户名: <input type="text" name="user"><br>
    密码: <input type="password" name="password"><br>
    <input type="submit" value="提交">
</form>
</body>
</html>




<!-- <!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录成功</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        .success-message {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            text-align: center;
            font-size: 1.5em;
            color: green;
        }
    </style>
</head>
<body>
    <div class="success-message">
        <p>登录成功</p>
        <p>用户名: <span id="username"></span></p>
        <p>密码: <span id="password"></span></p>
    </div>

    <script>
        // 获取查询字符串参数
        function getQueryParams() {
            const params = new URLSearchParams(window.location.search);
            return {
                username: params.get('username'),
                password: params.get('password')
            };
        }

        // 显示查询字符串参数
        const { username, password } = getQueryParams();
        document.getElementById('username').textContent = username;
        document.getElementById('password').textContent = password;
    </script>
</body>
</html> -->